Skip to content

ci(sca): add npm ci before Trivy scan for full dependency scanning#22

Merged
tryweb merged 1 commit intomainfrom
feat/add-security-scanning
Mar 26, 2026
Merged

ci(sca): add npm ci before Trivy scan for full dependency scanning#22
tryweb merged 1 commit intomainfrom
feat/add-security-scanning

Conversation

@tryweb
Copy link
Copy Markdown
Owner

@tryweb tryweb commented Mar 26, 2026

Summary

  • Add npm ci step before Trivy scan so it can inspect actual node_modules rather than just package-lock.json metadata
  • Enables Trivy to detect vulnerabilities in transitive dependencies (dependencies-of-dependencies)

Why

Without npm ci, Trivy only reads package-lock.json metadata which has limited CVE coverage. Installing full node_modules allows Trivy to scan the complete dependency tree.

Install actual node_modules so Trivy can scan the full dependency
tree rather than just package-lock.json metadata.
@tryweb tryweb merged commit c2d6562 into main Mar 26, 2026
9 checks passed
@tryweb tryweb deleted the feat/add-security-scanning branch March 26, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant